s = input('请输入一串字符：')
d ={}
for i in s:
    if i in d:
        d[i] +=1
    else:
        d[i] = 1
print(d)
